package com.wxq.demo.service;

import com.wxq.demo.dao.BookDao;
import com.wxq.demo.pojo.Book;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class BookService {

    @Autowired
    private BookDao bookDao;

    public Book getBookById(Integer id) {
        return bookDao.getBookById(id);
    }

    public Book updateBookById(Book book) {
        return bookDao.updateBookById(book);
    }

    public void deleteBookById(Integer id) {
        bookDao.deleteBookById(id);
    }
}
